// 导入express模块
const express = require('express')
//创建服务器实例
const app = express()
// 导入apiRouter模块,并注册
const apiRouter = require('./apiRouter')
app.use('/api', apiRouter)
//启动服务器
app.listen(80, () => {
    console.log('express server running at http://127.0.0.1')
})
